package com.example.work1.server.service.impl;

import com.example.work1.server.mapper.MajorMapper;
import com.example.work1.server.pojo.Major;
import com.example.work1.server.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorServiceImpl implements MajorService {
    @Autowired
    private MajorMapper majorMapper;
    @Override
    public List<Major> getAllMajors(){
        return majorMapper.getAllMajors();
    }
}
